﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 插件CSS类库不可随意更改开始-------------------------------------------->
<!--时间插件开始-->
<link type="text/css" rel="stylesheet"  href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/plug/mobiscrollv3.0.0-beta6/css/mobiscroll.custom-3.0.0-beta6.min.css?v={yun:}$config.cachecode{/yun}"/>
<link type="text/css" rel="stylesheet"  href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/plug/mobiscrollv3.0.0-beta6/css/skin.css?v={yun:}$config.cachecode{/yun}"/>
<!--时间插件结束-->
<!---------------------------------- 插件CSS类库不可随意更改结束-------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<!---------------------------------- 插件js类库不可随意更改开始 ---------------------------------------->
<!--时间插件开始-->
<script src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/plug/mobiscrollv3.0.0-beta6/js/mobiscroll.custom-3.0.0-beta6.min.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
<!--时间插件结束-->
<!---------------------------------- 插件js类库不可随意更改结束 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>
<script type="text/javascript">
$(function(){
/*----------时间插件开始----------*/
   $('#gather_data').mobiscroll().date({
            theme: 'android-holo-light', //皮肤样式
            mode: "scroller",  
			display: 'bottom', //显示方式
			lang: 'zh',     
			dateFormat : 'yyyy-mm-dd', // 面板日期格式
			setText : '确认', //确认按钮名称
			cancelText : '取消', //取消按钮名籍我
			dateOrder : 'yyyymmdd', //面板中日期排列格式
			dayText : '日',
			monthText : '月',
			yearText : '年', //面板中年月日文字
			showNow : false,
			nowText : "今",
        });

/*----------时间插件结束----------*/
	
	
	})
</script>
    <script type="text/javascript" >
        $(function(){

            /*弹框关闭*/
            $(".hiddenradio").click(function(){
                var state = $(".hiddenradio").val();
                if(state == 2){
                    $("#time").hide();
                }

            });
            //入职失败方法
            $("#js_inputcheck .choosebox").click(function(){
                if($(this).find(".hiddenradio").attr("value")==2){
                    $("#checktime").hide();
                }
                else{
                    $("#checktime").show();
                }
            })




        })

    </script>

</head>
<body>
   <div class="pin_box pin_tbox">
        <!-----------------头部标题开始----------------->
        <div class="pin_title">
        	<a href="index.php?c=entry_info&delivery_id={yun:}$id{/yun}&type={yun:}$type{/yun}" class="titleback"></a>
            <span class="titlename">入职状态</span>
        </div>
        <!-----------------头部标题结束----------------->
   	    <div class="pin_bcon">
        	<div class="pin_scroll">
                <input name="id" id="id" value="{yun:}$id{/yun}" type="hidden"/>
                <input name="type" id="type" value="{yun:}$type{/yun}" type="hidden"/>
                <input name="member_id" id="member_id" value="{yun:}$job.member_id{/yun}" type="hidden"/>
                <div class="pin_infoedit"  id="js_inputcheck">
                	 <div class="infoname">入职状态：</div>
                     <label class="choosebox">
                         <div class="hiddenradiobox">
                              <input type="radio" class="hiddenradio" name="chuli" value="3" checked>
                              <span class="hiddenradio-span"></span>
                         </div>
                         <span class="name">入职</span>
                    </label>
                    <!--<label class="choosebox">-->
                         <!--<div class="hiddenradiobox">-->
                              <!--<input type="radio" class="hiddenradio" name="chuli">-->
                              <!--<span class="hiddenradio-span"></span>-->
                         <!--</div>-->
                         <!--<span class="name">待入职</span>-->
                    <!--</label>-->
                    <label class="choosebox">
                         <div class="hiddenradiobox">
                              <input type="radio" class="hiddenradio" name="chuli" value="2">
                              <span class="hiddenradio-span"></span>
                         </div>
                         <span class="name">入职失败</span>
                    </label>
                </div>
                <div class="pin_infoedit">
                	 <div class="infoname">入职详情</div>
                     <div class="editlist">
                            <span class="name">入职单位：</span>
                            <div class="info">
                            	<input type="text" class="pin_input" value="{yun:}$job.company_name{/yun}" disabled="disabled" >
                            </div>
                         </div>
                         <div class="editlist">
                            <span class="name">入职岗位：</span>
                            <div class="info">
                            	<input type="text" class="pin_input" value="{yun:}$job.job_name{/yun}" disabled="disabled" >
                            </div>
                         </div>
                         <div class="editlist" id="checktime">
                            <span class="name">入职时间：</span>
                            <div class="info">
                                <input type="text" class="pin_input pin_time" id="gather_data" name="gather_data">
                            </div>
                         </div>
                     
                </div>
                <div class="pin_infoedit_btn">
                  <input type="button" class="pin_btn pin_alonebtn" value="修改入职状态" onClick="handlesave('{yun:}url m=jingjiren c=entry_save{/yun}');">
                </div>
                
            </div>
        </div>
        
   </div>
</body>
</html>
<script type="text/javascript">
    function handlesave(url){
        var id=$("#id").val();
        var type=$("#type").val();
        var gather_data=$("#gather_data").val();
        var member_id=$("#member_id").val();
        var chuli=$('input:radio[name="chuli"]:checked').val();

        if(chuli==null || chuli==0){
            layer.msg('未处理不能提交！', 2, 8);return false;
        }
        if(id==""){
            layer.msg('用户ID不能为空！', 2, 8);return false;
        }
        if(chuli == 3){
            if(gather_data==""){
                layer.msg('入职时间不能为空！', 2, 8);return false;
            }
        }




        $.post(url,{
            id:id,
            chuli:chuli,
            gather_data:gather_data,
            type:type,
            member_id:member_id,

        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                window.location.href=data.url;
            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>

